volume integer defines the value to which the speaker volume must
be set.
Changes the current speaker volume setting to the value you specify. The speaker volume is always a value between 0 (silent) and 7 (loud).
This procedure changes the volume setting stored in the non-volatile PRAM memory, thus this setting will also be used after turning the computer off or after a restart. If you specify a value outside the 0 to 7 range, the nearest possible value will be used instead.
Keep in mind that the optimal volume setting can be different for different Macintosh models and locations. Volume level 5 is very loud on a Quadra 660AV with an AV monitor, but 7 is still to low for a Mac Plus...
Also, with AV monitors the user can change the volume from the display with the built-in amplifier. So, again, let the user decide.
Example:
C_INTEGER ($volume)
$volume := VI Get Volume
If ($volume <= 4)
CONFIRM ("The speaker volume is too low. Do you want to change it